package admin.login;
import java.util.ArrayList;
import java.util.List;
import java.sql.SQLException;
import java.util.HashMap;

import com.ibatis.sqlmap.client.SqlMapClient;

import comm.IbatisLoader;

public class LoginDao {
	private IbatisLoader 	iBatis;
	private SqlMapClient 	sqlMapper;
	
	public LoginDao(){
		this.sqlMapper = iBatis.setConfig();
	}
	
	public List loginOk(String login_id ,String login_pw){
		List returnValue = new ArrayList();
		HashMap map = new HashMap();
		map.put("id",login_id);
		map.put("pwd",login_pw);
		try {
			returnValue = (List)sqlMapper.queryForList("login.loginOk",map);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		return returnValue;
	}

}
